package com.ld.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.PropertySource;


/**
 * @Author: Liudao
 * @Date: 2022-08-22-14:43
 * @Description:
 */
@PropertySource("classpath:student.properties")
@ConfigurationProperties(prefix = "s2")
@Data
@EnableConfigurationProperties(Student2.class)
public class Student2 {
    private int sid;
    private String sname;
    private String sex;
    private int age;
    private String addr;
}
